package jude.java.framework.spring;

import javax.servlet.ServletException;

import org.springframework.context.ApplicationContext;
import org.springframework.web.context.support.WebApplicationContextUtils;

public class ContextLoaderServlet extends
		org.springframework.web.context.ContextLoaderServlet {

	private static final long serialVersionUID = -6245268748377048430L;

	public void init() throws ServletException {
		super.init();
		ApplicationContext context = WebApplicationContextUtils.getWebApplicationContext(getServletContext());
		SpringContextHolder.setApplicationContext(context);
	}

}
